x86, s3: Sync platform stamps at time suspend.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Nov 2008 13:17:31 +0000 (13:17 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 19 Nov 2008 13:17:31 +0000 (13:17 +0000)
commite1054557f90f9ec1552fa5e75b302acbd5b069cb
tree4bab92ede25d5ccb74bfa6e8b893e4e1586f1c0c
parentde48794325d451d93db88a14b066b3f506bb3b24
x86, s3: Sync platform stamps at time suspend.

platform_timer_stamp and stime_platform_stamp are synced
to platform timer in time calibration (1s interval), and
thus doesn't reflect the latest value. If they're not
synced at time suspend, the offset can be lost after S3
resume. Average 0.8s lag-behind is observed for each S3
action, which accumulates to TOD inaccuracy.

Signed-off-by Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/time.c